"use strict";

module.exports = (app) => {
    const { STRING, INTEGER, DATE, TEXT } = app.Sequelize;

    const User = app.model.define("log", {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        type: { type: STRING, allowNull: false },
        userId: { type: STRING, allowNull: false, unique: true },
        msg: { type: TEXT },
    },);

    return User;
};
